package org.red5.controller;

import org.red5.demo.PushRTMP;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.annotation.Resource;

/**
 * * @projectName videoservice
 * * @title IndexController
 * * @package com.de.controller
 * * @description  首页
 * * @author IT_CREAT     
 * * @date  2020 2020/5/17/017 5:15  
 * * @version c1.0.0
 */
@Controller
public class IndexController {

    @Resource
    PushRTMP pushRTMP;


    @GetMapping("/")
    public String indexView(){

        try {
           //pushRTMP.run2();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return "index";
    }

    @GetMapping("/index3")
    public String index3(){
        try {
            //pushRTMP.run2();
        } catch (Exception e) {
            e.printStackTrace();
        }

        return "index3";
    }
    @GetMapping("/jwplayer")
    public String jwplayer(){
        try {
           //pushRTMP.run2();
        } catch (Exception e) {
            e.printStackTrace();
        }

        return "jwplayer";
    }
    @GetMapping("/videojs")
    public String videojs(){
        try {
            //pushRTMP.run2();
        } catch (Exception e) {
            e.printStackTrace();
        }

        return "videojs";
    }

    @GetMapping("/flvPlayer")
    public String flvPlayer(){
        try {
            //pushRTMP.run2();
        } catch (Exception e) {
            e.printStackTrace();
        }

        return "flvPlayer";
    }

}
